/**
 * 
 */
package com.hezhi.framework.dao.common;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author zandy (chenheng) <br/>
 */
public interface Extractor<T> {
	/**
	 * 
	 * Extract data from java.sql.ResultSet.<br />
	 * Needn't care about rs.next() is true or false<br />
	 * Encapsulate the record or relation database into one object.
	 * 
	 * @param rs
	 * @return
	 * @throws SQLException
	 */
	T extract(ResultSet rs) throws SQLException;
}
